//
//  SecondViewController.h
//  Login
//
//  Created by FER on 22/10/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
#import <MobileCoreServices/MobileCoreServices.h>


@interface SecondViewController : UIViewController <UIPickerViewDelegate, UIPickerViewDataSource, 
		CLLocationManagerDelegate, 
			UINavigationControllerDelegate, UIImagePickerControllerDelegate> {
	NSMutableArray *arrayTypes;
    IBOutlet UIPickerView *pickerView;
	CLLocationManager *lm;	
	IBOutlet UIImageView *imageView;
	UIImagePickerController *imagePicker;
	IBOutlet UITextField *coordinatesTextField;			
              
                
    UIPopoverController *popoverController;
                
    //Formulario
    IBOutlet UITextField *textfieldTitle;            
    IBOutlet UITextView *textfieldDescription;  
    IBOutlet UITextField *textfieldAddress;  
    IBOutlet UITextField *textfieldPlaca;  
    IBOutlet             UITextField *textfieldMarca;  
    IBOutlet             UITextField *textfieldModelo;  
    IBOutlet             UITextField *textfieldAno;
    IBOutlet             UITextField *textfieldColor;  
    IBOutlet             UITextField *textfieldLicencia;
    IBOutlet             UITextField *textfieldConductor;  
	
}


@property (retain, nonatomic) UITextField *textfieldTitle;
@property (retain, nonatomic) UITextView *textfieldDescription;
@property (retain, nonatomic) UITextField *textfieldAddress;
@property (retain, nonatomic) UITextField *textfieldPlaca;
@property (retain, nonatomic) UITextField *textfieldMarca;
@property (retain, nonatomic) UITextField *textfieldModelo;
@property (retain, nonatomic) UITextField *textfieldAno;
@property (retain, nonatomic) UITextField *textfieldColor;
@property (retain, nonatomic) UITextField *textfieldLicencia;
@property (retain, nonatomic) UITextField *textfieldConductor;


@property (nonatomic, retain) UIPopoverController *popoverController;


@property (retain, nonatomic) UITextField *coordinatesTextField;
@property (retain, nonatomic) CLLocationManager *lm;
@property (nonatomic, retain) UIImageView *imageView;

-(IBAction) btnClicked: (id) sender;
-(IBAction) btnGuardar: (id) sender;
-(IBAction) uploadImage : (id) sender;

NSString *myxml;
NSArray *xmlBuffer;
NSXMLParser *parser;
NSString *IDdelSeleccionado;

@end
